﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 红钻详情
    /// </summary>
    [Serializable]
    public class redrecorddetail_dto {
        /// <summary>
        /// 红钻记录id
        /// </summary>
        public long id { get; set; }
        /// <summary>
        /// 红钻值
        /// </summary>
        public decimal red_drill { get; set; }
    }
    /// <summary>
    /// 红钻马力排行
    /// </summary>
    [Serializable]
    public class red_dto {
        /// <summary>
        /// 序号
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 账户 昵称
        /// </summary>
        public string nick_name { get; set; }
        /// <summary>
        /// 总红钻
        /// </summary>
        public decimal red_drill { get; set; }
        /// <summary>
        /// 马力
        /// </summary>
        public int horse_power { get; set; }

    }
    /// <summary>
    /// 红钻马力排行
    /// </summary>
    [Serializable]
    public class red_rank_dto {
        public red_rank_dto() {
            list = new List<red_dto>();
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string datetime { get; set; }
        /// <summary>
        /// 类别 1 红钻 2 马力
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 红钻或马力
        /// </summary>
        public List<red_dto> list { get; set; }
    }
    /// <summary>
    /// 用户红钻马力邀请码等数据
    /// </summary>
    [Serializable]
    public class red_user_dto : red_dto {
        /// <summary>
        /// 目前红钻
        /// </summary>
        public decimal present_red_drill { get; set; }
        /// <summary>
        /// 冻结红钻
        /// </summary>
        public decimal frozen_red_drill { get; set; }
        /// <summary>
        /// 邀请码
        /// </summary>
        public string invitation_code { get; set; }
        /// <summary>
        /// 邀请码还能使用次数
        /// </summary>
        public int invitation_code_num { get; set; }
        /// <summary>
        /// 已邀请多少人
        /// </summary>
        public int invitation_num { get; set; }
    }
    /// <summary>
    /// 用户红钻马力排行
    /// </summary>
    [Serializable]
    public class user_red_dto {
        /// <summary>
        /// 红钻排行
        /// </summary>
        public long r_no { get; set; }
        /// <summary>
        /// 目前红钻
        /// </summary>
        public decimal red_drill { get; set; }
        /// <summary>
        /// 获取的总红钻
        /// </summary>
        public decimal total_red_drill { get; set; }
        /// <summary>
        /// 马力排行
        /// </summary>
        public long h_no { get; set; }
        /// <summary>
        /// 马力
        /// </summary>
        public int horse_power { get; set; }
    }
    /// <summary>
    /// 用户红钻马力记录列表
    /// </summary>
    [Serializable]
    public class user_record_dto {
        /// <summary>
        /// 显示类型
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime time { get; set; }
        /// <summary>
        /// 红钻
        /// </summary>
        public decimal red_drill { get; set; }
        /// <summary>
        /// 马力
        /// </summary>
        public int horse_power { get; set; }
        /// <summary>
        /// 转赠手续费（非转增好友情况为空）
        /// </summary>
        public decimal? transfer_fee { get; set; }
        /// <summary>
        /// 是否过期
        /// </summary>
        public string e_time { get; set; }

        /// <summary>
        /// 时间（用于排序）
        /// </summary>
        [JsonIgnore]
        public long time_value { get; set; }
    }

    [Serializable]
    public class user_record_dto_ex : user_record_dto {

        /// <summary>
        /// 用户id
        /// </summary>
        public long user_id { get; set; }
    }
}
